.class public final Lcom/navbuilder/nb/f;
.super Ljava/lang/Object;


# static fields
.field private static mw:Lcom/navbuilder/nb/f;


# instance fields
.field private tB:Ljava/util/Vector;

.field private tC:Z


# direct methods
.method private constructor <init>(Lnbisdk/fq;Lnbisdk/hj;)V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lcom/navbuilder/nb/f;->tB:Ljava/util/Vector;

    invoke-static {p2}, Lnbisdk/bk;->a(Lnbisdk/hj;)V

    invoke-static {p1, p2, p0}, Lnbisdk/ix;->a(Lnbisdk/fq;Lnbisdk/hj;Lcom/navbuilder/nb/f;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/navbuilder/nb/f;->tC:Z

    return-void
.end method

.method public static a(Lnbisdk/fq;Lnbisdk/hj;)Lcom/navbuilder/nb/f;
    .locals 1

    sget-object v0, Lcom/navbuilder/nb/f;->mw:Lcom/navbuilder/nb/f;

    if-nez v0, :cond_0

    invoke-static {p0, p1}, Lcom/navbuilder/nb/f;->b(Lnbisdk/fq;Lnbisdk/hj;)V

    new-instance v0, Lcom/navbuilder/nb/f;

    invoke-direct {v0, p0, p1}, Lcom/navbuilder/nb/f;-><init>(Lnbisdk/fq;Lnbisdk/hj;)V

    sput-object v0, Lcom/navbuilder/nb/f;->mw:Lcom/navbuilder/nb/f;

    :cond_0
    sget-object v0, Lcom/navbuilder/nb/f;->mw:Lcom/navbuilder/nb/f;

    return-object v0
.end method

.method private static b(Lnbisdk/fq;Lnbisdk/hj;)V
    .locals 2

    if-nez p0, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "PAL cannot be null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    invoke-interface {p0}, Lnbisdk/fq;->cm()Lnbisdk/qv;

    move-result-object v0

    if-nez v0, :cond_1

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "Network Config is not set"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_1
    invoke-interface {p1}, Lnbisdk/hj;->dh()Lnbisdk/le;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/le;->isComplete()Z

    move-result v0

    if-nez v0, :cond_2

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "Network Config is not complete"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_2
    return-void
.end method


# virtual methods
.method public final b(Lcom/navbuilder/nb/c;)V
    .locals 1

    iget-object v0, p0, Lcom/navbuilder/nb/f;->tB:Ljava/util/Vector;

    invoke-virtual {v0, p1}, Ljava/util/Vector;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/navbuilder/nb/f;->tB:Ljava/util/Vector;

    invoke-virtual {v0, p1}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    :cond_0
    return-void
.end method

.method public final c(Lcom/navbuilder/nb/c;)V
    .locals 1

    iget-object v0, p0, Lcom/navbuilder/nb/f;->tB:Ljava/util/Vector;

    invoke-virtual {v0, p1}, Ljava/util/Vector;->removeElement(Ljava/lang/Object;)Z

    return-void
.end method

.method public final c(Lnbisdk/fq;Lnbisdk/hj;)V
    .locals 1

    invoke-static {p1, p2}, Lcom/navbuilder/nb/f;->b(Lnbisdk/fq;Lnbisdk/hj;)V

    invoke-static {p2}, Lnbisdk/bk;->a(Lnbisdk/hj;)V

    invoke-static {p1, p2, p0}, Lnbisdk/ix;->a(Lnbisdk/fq;Lnbisdk/hj;Lcom/navbuilder/nb/f;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/navbuilder/nb/f;->tC:Z

    return-void
.end method

.method public final destroy()V
    .locals 1

    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_0

    invoke-static {}, Lnbisdk/ef;->close()V

    :cond_0
    invoke-static {}, Lnbisdk/ie;->close()V

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/ix;->destroy()V

    invoke-static {}, Lnbisdk/ap;->close()V

    const/4 v0, 0x0

    sput-object v0, Lcom/navbuilder/nb/f;->mw:Lcom/navbuilder/nb/f;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/navbuilder/nb/f;->tC:Z

    return-void
.end method

.method public final isValid()Z
    .locals 1

    iget-boolean v0, p0, Lcom/navbuilder/nb/f;->tC:Z

    return v0
.end method

.method public final jG()Ljava/util/Vector;
    .locals 1

    iget-object v0, p0, Lcom/navbuilder/nb/f;->tB:Ljava/util/Vector;

    return-object v0
.end method
